package system

import (
	"MoSkeleton/framework/core/models"
)

type SysNotice struct {
	models.MoModel
	NoticeTitle   string  `gorm:"column:notice_title;type:VARCHAR(50);NOT NULL"`
	NoticeType    string  `gorm:"column:notice_type;type:CHAR(1);NOT NULL"`
	NoticeContent *string `gorm:"column:notice_content;type:LONGBLOB;"`
	Status        string  `gorm:"column:status;type:CHAR(1);"`
	CreatedBy     string  `gorm:"column:created_by;type:VARCHAR(32);"`
	UpdatedBy     string  `gorm:"column:updated_by;type:VARCHAR(32);"`
	Remark        string  `gorm:"column:remark;type:VARCHAR(255);"`
}

func (b *SysNotice) TableName() string {
	return "sys_notice"
}
